package wyu.service.feign;

import com.dto.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import java.util.List;


@FeignClient("user-bar-provider")
public interface UserBarService {
    /*新增一条用户关注贴吧记录*/
    @GetMapping("/user_bar/joinBar")
    boolean joinBar(@RequestParam("barId")int barId,@RequestParam("uName")String uName);
    /*删除一条用户关注贴吧记录*/
    @GetMapping("/user_bar/exitBar")
    boolean exitBar(@RequestParam("barId")int barId,@RequestParam("uName")String uName);
    @GetMapping("/user_bar/getCount")
    int getCount(@RequestParam("barId") int barid);
    @GetMapping("/user_bar/getUserBarRelevancy")
    boolean getUserBarRelevancy(@RequestParam("uName")String uName,
                                @RequestParam("barId")int barId);
    /*查询当前登录用户关注的贴吧的id列表*/
    @GetMapping("/getUserBarList")
    List<Integer> getUserBarList(HttpServletRequest request);
}
